package evs.testbrp;

import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class RemoteObject implements GeneratedInterfaceDescription {
	
	private Log log = LogFactory.getLog(RemoteObject.class);

	public String echo(String message) {
		log.info("echoing message: " + message);
		return message;
	}

	public Date getServerTime() {
		Date now = new Date();
		log.info("returning ServerTime: " + now);
		return now;
	}

	public Double add(Integer i, Long l) {
		log.info("returning addition of " + i + " and " + l);
		Double d1 = new Double(i);
		Double d2 = new Double(l);
		return d1 + d2;
	}

}
